// const fs=require("fs");
// let buf_1=Buffer.alloc(10);
// let buf_2=Buffer.allocUnsafe(1000);
// let buf_3=Buffer.from("Hello World!!");
// console.log(buf_1);
// console.log(buf_2);
// console.log(buf_3);

// buff_3[0]=0x25;
// console.log(buff_3);
// console.log(buff_3.toString());

// const path=require("path")
// console.log(path)
// console.log(path.basename("./ext/test.js"));
// console.log(path.basename("./ext/test.js",".js"));
// console.log(path.basename("./ext/test.js",".html"));
// console.log(path.basename("./ext/foo/"));


const fs = require('fs');
const path = require('path');

function listFilesRecursively(dir) {
  const files = fs.readdirSync(dir);
  files.forEach(file => {
    const filePath = path.join(dir, file);
    const stats = fs.statSync(filePath);
    if (stats.isDirectory()) {
      console.log(filePath);
      listFilesRecursively(filePath);
    } else {
      console.log(filePath);
    }
  });
}
listFilesRecursively('D:\\javawop\\javaw\\efxk\\awd\\class01');